added slf4j, refactored logging