allow path to be specified when render is called