support to set uid and gid fixes #2