minute refactor to get sdf works in sdfstream