work in progress, problem with deps.flush