adding the mock api and fixing the demo to work with IWC API changes