better checks in kernel compile. make bool param an actual bool in code