second attempt at resilency