most syscalls working. still need to finish loop