added the timeout setting to `wrapMethods`