more proper way to call lua