move inrange check to end of functions
add blocks that are immediately adjacent to query blocks in output.  try to improve thread safety by adding threaID to method interface.  This id is used to ensure that a hal alignment pointer is only accessed by one thread