added priority resolver