fixed saving out path issues