fix Transport#waitFor, fix docs