fix secure:false

- fix opts handling