fixed connection so my previous commit message isnt a lie now.