cleanup in astrod.cpp