added serialize to myclib