Off file fixes

use tmp variable for material name

replace aaeaf9bdb9ad1be0e7519d2a9a74186a5aae835b
ps: gone to extra branch, hope this omits commits to other PR