better console log functionality