renamed eidrp and can take eidata as well as filename