use a actual working queue implementation, tested on 1.8.7 only