add key service and token service