refactor error factory as component
use lvivier/debug instead of netwjx/debug