small tweaks to rhs.cpp; RTA still not working