definition and template resource loading and logger module