mongoose version upgrade
routes code improvement
proper aggregation for xhr types