add ifdef to enable SSL