fixing some rails root calls to the new api, deleting old files