handle non-ssl connections