befor starting deployment