removed Rails dependency