tidying up script generators before i try to generat ruby