segment extension basic implementation