restructure directory tree, use pm files for plugins