initial moving for serialize logic out of AssemblyReader