implement 'check' command (half way)