add try/catch arround JSON.parse