adapt stdin and cli parameters for gem wrapper