improve error coverage, add stub