integrating HW directory device into echo example