added a idPrefix padding hack in the payload builder