finally got ahapp.cpp to compile again