removed the interceptor code from app.js into a seperate file to make it more modular