improve "with" script