improve connections interface