recover from errors
handler errors
remove useless require
error handler system
some refactor