Implemented routes with mpp preprocessing, fixed some more bugs in mpp