fix file looking up