added log4j support. returning Queries to project