tidy up cofnig