add synchronous query
add style for rules