updating the way console log happens