changed wrapper to stay consistent with other plugins (see #357)