switch order of params applied to function calls during publish