working queue implementation