#142 move dispose definition to the prototype