added loading of queue