check and deploy