move connection end to api from table-set