creating apps directory when appcontroller starts