added a bypassRules flag in order to bypass rules if needed