updates gems, adds guard