initial version of routeDrawing.  needs some debugging at line 363.