command pattern for checks