improve the "with" script