make script more universal