work in progress A10C lua script