fixed coding bugs, loads json async.