added partial flash support