improved config and based config setting