simple queue library to prevent pyramid of doom