initial checkin of bap with moflow triage modifications