moved EBSM to library