memoryDirectory added to build