first commit, after rewriting the plugin
fix ST2 compatibility