somewhat improved taming script :) from