lots of clean up, changed priority command to just pri