removed CLI and move to file i/o