initial C main app