#3 adding priority to server, which can be null
#3 if priority has null value, treat it as last