fixed server callback and callback when compileModules is complete