hopefully fix file existence test