changed dirname in primary require