updated refinement in lua:
more debug for fault opening