pdoify server-side code