made APG/SGD an option at the command line