fixes for basex