added check for inexistent files