fixing smartos script