enhance condition checking
update readme