removed trailing slash at "functions" for path adding