successfully recreated client in lua