copied most usr functions
Merge pull request #2 from shouburu/master

copied most usr functions