revised deploy hooks