refactor monitor loading procedure.
add comment