removed dependency on Rails in main functionality entirely