better handling of bad userids