added 'bot retrieval' and some console logs in app.js