cli working, but ugly