meh
switch connection to unique_ptr