adapted to local config overwriting global one