Type safe config
added 'execute' function to be able to clean-up resources after use. Use config in Main