bash script to build more simply
woops.. nonsense variable deleted..