api convert, and arg -r in cli