initializing application structure