app class and route helpers