make gw works with new libs