spec and doc