added query to free query interface