fix a stupid bug in the webservice that truncated the result of the commands SCRIPTS, ACTIONS, SCHEDULES
add sleep(millis) in the actions
run the scheduler in a thread