clean up decode and implement dictionary specific reset commands