adds q as dependency