changed scripts to gem