refactored for setting setup in ActiveRecord class creation