build dsn separately