buildresult key - status switch order
add history
clean up