changed phatqueue to use slices instead of lists