fixed bug where file was more or less always absent