fixing up routing errors