visibility checker taken from objectmapper