added before and after options to geodesic generator