update dependencies, create orderedQueue and fix ranking