better implementation
enable debug-on-error while load configuration files