another attempt to fix compile errors