lib/proto.js