fixing routes bugs