fixed unpacking responces, clean-up logging