make console and debugwritelines public so that it can be reused