checks of files and dirs existance added