fix problem: only working in local directory