added priority management