added render_file func to context