updated logging, capture, small fixes