add the script and the functions file