add basic support to plugins fix #23