adds checks for error conditions and linus torvalds :-)