added option to force ssl