-- added load and save function to tsd space
-- minor bug fix