updates to code to incorporate polar ssl