swap batch scripts for ruby plugin