added error controller,
more base entity service