make checking interval configurable via flag