handle null responses