fix warnings and bump to 1.7