add onInit event handler and possibility of configuration module before init