got the amazon reboot code working and restored the elasticsearch memory bounds code