optimization: moving class SMPS -> namespace SMPS