updated for new version of express-magic