fixed bool parsing and signature verification