serialize createError done right