onfire
fix global scope
add test