removed model dependency to avoid ActiveRecord issues