added some logging to deploy method