change update map to slice
fix encoding issues
Merge pull request #1 from lukechampine/pos

Fix encoding issues and switch to slice of updates