update sf library to 2.2.*
Fix flash deprecated messages