adds .functions file