fixed serialization bug
added dynamic namespace loading