moved block logic to jsonbroker and updated license header in the source