add check for polling and deploying