compile fixes for COI, but lights don't work anymore, looking into it