separate generating ruby script
customizable with commands limits with names
refactoring: reduce nest