fixing things to make compile work