resolved some issues with rspec