serialization bug fixed, was causing circular data structure