separate flags for module and the patch wrapper;