moved singleton decorator out of config.py