gems cleanup