add some checks in vase the file wasn't retrievable