add t flag for testing