use if let when reading raw buffer
use if let in scene setup