properly handle passed in connection options