added ability to send sgel via command line