get_or_create_queue(): fix sqs not defined bug
add queue writer for debugging