add mem use and ad 64bit support