xi as input from command line