adding getByToken interface