added query, frag