added default configs
added suport to plugin.init function