updated for latest ealib