altering payload so we don't need duplicate code in rails core