adds configuration options to localmax and globalmax