support command line arguments and TLS