ensure debugging is disabled with flag
version flag reimplemented