removing ActiveResource dependency