added sqs and  command line argument