now when loading instances it removes non-up instances

got test for updating instances working.