fixed access check class and conformed to new interface