update routes struct