add paths and restructure response front end