move WML [redraw] impl to lua