removed layer serialization