added support to assign security groups