ampl output fixing - not ready yet