add support for rands in input file