changed serialization to use JSON rather than Java Serialization. implemented fix to preserve backwards compatability