removed dependency on rails