added the check.rb stuff