moved code from known pool to serialization functions