added prepare() and get_rspec() methods