adding template definition + logical mapping