getAccessKey(key) needs to be public