fix issue #45
fix issue #44
fix simplejson deprecation