fixed templates and public paths