-added main-dev to spawn the system in a separate thread and debug! automatically