mock of basic plugin function