fixed retrieval of error page
implemented template meta