added restart() static function to env