ticket:2 current dirty (with a lot of log.D() calls for error tracing purpose) version I got stuck with