further implemenation of the command pattern and use of Binary Json