extracted require dir sync