add rebuilding the temple dir