config parsing logic
improved config parsing logic and added a logutils module