implemented console buffer