added exception and some doc