added stuff in serialize.h