implemented working console + ansi support