solved #37
modified checkAccess and dependencies