support multiple roots
Merge pull request #2 from Hisakazu/serializable

support multiple roots