prevent gcc warnings
make profile creation optional