refactoring sip/header