safe build contex