improved ruby builder