clean up readline import block
change arg handling for newer version of clint