modify init scripts to be more universally friendly