better manage in error and outputs