some userspase code, and minor changes
some userspase code, and minor changes