put json parsing in a try-catch because the library doesn't always return json
add winston logging, send errors to email