fix issue #8
if building parameters from a string, it is now a JSON string
session_ids should now  belong to the parameters