updated api and commander to handle "try again" error
script for running all training data