refined pos & queue implementations