cleanup connector class

Signed-off-by: derwinlu <derwinlu+git@gmail.com>