reverted s_rules.cc refactoring
fixed warnings
refactoring zs_memory