debug code inside request