nearly functioning plugin