fixed hex_to_byte bug, added wrong address rejection on queries