[Shobhit] recursive require method