improving post-deploy hook