refactor ansi into own folder