decode command