added dynamic configuration loading for bundles and implemented custom exceptions