pass file path to instance_eval for error handling