fixed stream, added max pref