rework target to work on different ruby versions