small update now output json correctly