changes to init scripts to allow easier testing