adds better error logind in min submission