proto and doc layout