added clearmem command