fix. global variables. merge old settings.