overhauled the gem mechanics in the rake script