init primary app