handle null filename