use new (but still bad) command encoding
add clearRect