moved all logic to brokerctl