fixed jsessionid errors, some header refactoring.