capture ok

add capture
thread safe

quit thread safe