fixed an issue with naming for cloud functions