Merge pull request #321 from esell/securityGroupFix

use security groups and support assigning keys