fixing HEAD problems

intrudcued by shadows commit ....