fix to deploy mechanism