starting to add in router functionality