added design changes done by Han, added SSL config