added handling of further parameters in sapply. closes #189