moved timeout to app.js