add zam plugin source code