added an extra verification step
removing useless gems