working on the payload being json
moving to classes
adding dispatch capability