changed definitions for EPD, working on target hardware