automating, but still pretty much broken