port over SMaSH scripts