added AFTER_RESPONSE_IMMEDIATE setting