add std, rsd results and add the ability to read from stdin