moved everything to the command writer.