fix require rst mode