added path and method to the output