add ag qfreplace, etc