renamed handled flag to captured
add embed option