mostly bug-free, almost complete