switched to syscall - fixes #1