replace alerts, precompile