layout and hapi setup