improved checkconfig a little bit