add rmagic and active_support