extract the connection to it's own method