add connect api support
finish relay test