app mode works dyamically