implement .dei and .ami