add package.json and other middleware