added post/fetch_var_json and other minor changes