added options to make the plugin more flexible