proper manage routes for sources
slight modification