barebones BSL impl (contributes to #22) (needs flag sets)