changed syscalls to std (still wont compile though)