ssl support + better configuration