serialize and persist Levels