logging to console added