add host and optimize error
release 0.2.2