cleanup loose ends in compile