minor fixes/additions
json,logging&other minor fixes