improcing the plugin, fixed bug in server script