add process require
reformat structure to use real HTTP messages