startdetached as static function doesn't work