fixing routing functions and associated filepaths