make context structure, preparing base template