more verbose checks in debug mode