implemented route resolve