reworked console logging