optimize boot script order dependencies