Use atoms instead of refs to cover failing dosyncs