add support for uid and gid
Merge pull request #449 from robertcboll/master

add support for uid and gid