server side raw code for #2