added compatibility for rspec