build contexts