add ssl to module, general module cleanup