clean up for config