generic: pandora adaptations in q_shared.h refs #336