precompile and production fixes