handle multiple responses