add control interface

add control interface and update test