removed dependency on console from command's constructor