update to afepy