prepared appconsumer.js