handle variable params better in lua script commands