minor modifications to get it to boot right