Timothy

add more flags in check()