Starting to edit cepl to use this but have needed some additions
tweaks for cepl intergration