added thread syscalls & sleep state