fixing broken logic.
adding log4j.properties