fix input/output paths