better debug logging; fixed library arc dependencies