refactored code. Hardcoded keyname and security group name specific to stochss