fix licensing code, does not require app restart