move the grubbing around with strings into sl.h