Added decodeResponse & fixed global options bug