more compact example
fix #118: fix http response handling