this works great if you dont have lua++