run script in loop at startup