fixed some routing errors