now using 2 resources and java logging