index logic into app class