add support for reading from stdin for addinfo method