diff --git a/plugins/prometheus.py b/plugins/prometheus.py
index 4812187440c1c6f3adba62c5de160dee433ca18a..2edd460fe25d9c4aefffa584cf24d93b514a3b1b 100644
--- a/plugins/prometheus.py
+++ b/plugins/prometheus.py
@@ -28,13 +28,15 @@ class PluginPrometheus:
 
         start_http_server(
             addr=self.config["prometheus"].get('address', 'localhost'),
-            port=self.config["prometheus"]["port"]
+            port=int(self.config["prometheus"]["port"])
         )
+        print("started prometheus http server")
 
     async def update_sensor_values(self, sensor):
         """
         update
         """
+        print("updating prometheus metrics")
         self.sensor_metrics.labels(sensor=sensor.name).set(sensor.temperature)
 
     async def send_stats_graph(self, graph, stattype, stattime, statval):
diff --git a/tempermonitor.py b/tempermonitor.py
index 439bf5f21beb4b5d15b9e57edb0947dcc770df8f..82b87297fa19f8c54f67cfa91682e9a425b524b4 100755
--- a/tempermonitor.py
+++ b/tempermonitor.py
@@ -281,7 +281,7 @@ def main():
     print(f"Active plugins: {active_plugins}")
 
     for filename in plugin_path.glob("*.py"):
-        if (plugin_path / filename).exists() and filename.name in active_plugins:
+        if (plugin_path / filename).exists() and filename.stem in active_plugins:
             print("loading {}".format(filename.name))
             modname = "plugins." + filename.name.split('.')[0]
             module = importlib.import_module(modname)