added deploy-mode to compile script