Adding filename for better error reporting

Just adding `filename` to the `env` to get some better error-reporting.