Add lua hooks/ fixes
clear