working on ruby script generator