added languageindependent mechanism for q_activity (re #325)