integration code for SmartSociety