precompile for staging