Core routing functionality for routing libs