fix checking statuds codes
reorganize lib
new version