prio queue fixed, debugging done