cleaned up for dfxml release
moved code from be13_api to here