added function extract a querys arguments