improvment for local config