added priority integer support. Not tested !!