added a logging flag #105