now with decoding of x, s draw commands