daet.cpp: misc