fix protocol rgx + better usage resolving