reworked basic_connection