added priority column and default to zero