added priority option in init