added dsn support to config file