moved R3F to top of init