add mem command
add command cls and dir, but dir has several issues