modify protocol and apipath calls