switched to object as paylod instead of string