preliminary work on plugins