(#1387) - prototype based plugins api