added some helper functions the the plugin. preparing to release 0.3.3