api changes - add 'proto' and 'extend'.