better uid switching