#1: initial implementation of plugin