migrate agent implementation to slf4j