auth stuff for pir