diff --git a/src/Handler.php b/src/Handler.php
index 80112d840d9fb630cb78fd413c9acb075724c08a..033fd79dfebd111849d49b54e617f5b6ba08beb7 100644
--- a/src/Handler.php
+++ b/src/Handler.php
@@ -42,14 +42,16 @@ class Handler extends BaseHandler {
     }
 
     $installationManager = $this->composer->getInstallationManager();
-    foreach ($this->composer->getRepositoryManager()->getLocalRepository()->search('*') as $pkg) {
+    foreach ($this->composer->getRepositoryManager()->getLocalRepository()->search('lakedrops/*') as $pkg) {
       $pluginRoot = $installationManager->getInstallPath($this->getPackage($pkg['name']));
       if (file_exists($pluginRoot . '/.ahoy.yml')) {
         $pluginAhoy = Yaml::parseFile($pluginRoot . '/.ahoy.yml');
         foreach ($pluginAhoy['commands'] as $command => $commands) {
           $ahoy['commands'][$command] = $commands;
-          foreach ($commands['imports'] as $key => $import) {
-            $ahoy['commands'][$command]['imports'][$key] = './vendor/' . $pkg['name'] . '/' . $import;
+          if (isset($commands['imports']) && is_array($commands['imports'])) {
+            foreach ($commands['imports'] as $key => $import) {
+              $ahoy['commands'][$command]['imports'][$key] = './vendor/' . $pkg['name'] . '/' . $import;
+            }
           }
         }
       }