test command is almost there -- need to debug the pointer arithmetic