add check for process running, and dummy flash app