allow to specify query as cmdline arg. fix #1