rewrite parsing part of plugins, merge sending data part and logging