fixed bug in preconfig function where ss was not defined