added some prototype method defs