add missing variable initialization
add default headers in both configuration and route options