write to console