implemented methods to gather keys and tolkens