improved and tested error-logging, when unable to find template/controller