added param mode(=refresh)
adding older smc scripts "as is"
corrected the keyword for wc-path
added context-to-data with x-context param as string
updated to new context-to-data function