BSL impl with flags (contributes to #22)