minor updates and fixes to rails integration