fixes to preacct username mangling function