fix logging: add -q option, merge STDERR into STDOUT