fix catfile