make sure response is always defined