rejig to try and get ac and eldoc working