fix file getter