remove cruft from config