clean console ref