modified the script, still having problems with ELB
modified the script, still having problems with ELB