read params from the config