code cleanup
switched to priority queue
wip