add run once script
set mode