allow passing in connection to ptrack as connection object not just string