add more logging. #6 has been fixed already