settings.c - turn more functions static