add serialize & compress