make sure what we run is a file