added first pass at Prototype wrapper