befor deploy