removing extraneous code
adding securitygroupid option