clean globals, turn on display of errors and load all configuration files