more robust checks conditions and check script