check for functions file