added some priority stuff