fixed init of main module