add base_path config option everywhere