make gnotice use ts6 properly and not use encap anymore