updated to compile with the last version of the Q API