add query and interactive modes. add quiet print function
change message output. fix piping