fix up/down script modes