debug

started offline testing robust offline handling