cache fix, updated spec dir, optimize spec output