update mechanism

localmode by default
reduce some if statements in genRules process