replaces get with match (routing)