improved hash handling in config()