tweaks to sf()