added require-text support for require