change returns from a few lua functions