pass the extension, not the filename