simplifying system calls, testing some system calls, fixing permission user