add logging to working
add logging to working