notes
simplified a bit and remove some json