structure code and initial code (pre-URL manipulation)