routing implemented and basic testing