fixed address array, added possibility to switch off ssl