add `print` option mainly for command line