refactoring accesspoint