improved deployment script