move Log and Config into Global-namespace, use different file for data when on debug mode