added implementation for link broker
Updated to decrement license only when linking is sucessful
implemented dev