first implementation with manual start of script