fixed issues with the SM-from-file feat. working nicely.