add maxlen for config to make screen neat