added the timeout setting sequence to wrapMethods