removed script hook and moved deploy to after script hook