reworked gem update helper