forgot to add lua stuff for state (and orphanage too, now)