implemented optional deploy script hooks