storing profiles to disk