add int64 support
fix problem with root element