serialization of compiled classes