create 'generated' directory when start up