handle priority of opts