WIP to get plugins working... mock up at this stage