changing logging to console prints