added libc wrappers