connection flow done. just needs beautifying 