first draft of brat to emdf conversion