unborked.  Mapping routes to functions now works