use contemporary method to determine uid

according to:
http://www.felixnagel.com/blog/permalink/144/