add an unroll_safe