better script with variables file