added appId and made it mandatory in initialize