added minimal system calls