deploy hook fixes