draft implementation of uid/gid mapping