more logging, more doc