fix #15, make module more robust for empty responses