working version tested with ea4-data