mask now uses simplejson & adding synchronizer back.

Somehow in the mix of things the type assertion in the last commit caused a panic. This mask works.

And the synchronizer returns