added ansi support