prepare and run sh