add function to vars.sh