cleanup on config