added encoding to command