add option to dump on stdout