move stack script into sprinkle