update all scripts to use code from gem