routing in seperate class