boot script fixes