made the sloc source more dynamic for the language