added new checks to rakefile