some reorganization and functions for plugin configuration prepared