removed serialization as it was causing problems