add queue class, move to /api uri