added additional check for expected files