added decoder to cli