added logging
comment fix
replace json.unmarshal with json.decode
add type check in evaluating expr