work in progress for ref directory