add print to file and print flag
some results in avoiding domain