be alot more careful about serializing types, especially ones that are also methods, and minor corrections