function utilities
add global variable
add rules module