bugfix: create ref table