add legacy support
add debug and simplify docker logs