added plot_afs.*
plot_afs fully functional