added express.js style callbacks back into the project