refactor checker.coffee