made RunBodyBeforeMarshal public