update Command.cs to work with 2014 api