some bugs can be fixed

there is a lot of work to do in  the plugin core