injecting the responsefile instead of calling it directly