implemented law mode capabilities with new json object structure