polishing, errno integration