more debug info to logging
cleanup some unused code