workaround stat test errors in file