change plugin interface to use named parameters for flexability