fix require root on wrap