added input --max_tx. hardcoded for test