compiler switch to only run sync in DEBUG mode