Added explicit cast to File for bagresponse
updated